package org.huangrui.design.pattern.decorate;

public abstract class Ingredients extends Product{//小料，配料
    protected Product product;

    public Ingredients(Product product) {
        this.product = product;
    }

    @Override
    public double totalPrice() {
        return product.totalPrice();
    }

    @Override
    public String showMaterials() {
        return product.showMaterials();
    }
}
